/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 取件码广告位管理
 */
import React from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import AdvRelease from './components/AdvRelease';
import AdvLog from './components/AdvLog';
import AdvControl from './components/AdvControl';
import { Tabs } from 'antd';

const Advertisements: React.FC = () => {
  const tabList = [
    {
      tab: '广告发布中心',
      key: 'release',
      children: <AdvRelease />,
    },
    {
      tab: '控量计划',
      key: 'control',
      children: <AdvControl />,
    },
    {
      tab: '日志列表',
      key: 'log',
      children: <AdvLog />,
    },
  ];

  return (
    <PageContainer>
      <Tabs>
        {tabList.map((item) => (
          <Tabs.TabPane tab={item.tab} key={item.key}>
            {item.children}
          </Tabs.TabPane>
        ))}
      </Tabs>
    </PageContainer>
  );
};

export default Advertisements;
